package com.wocai.jrt.orgadmin.flow.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FlowDetailBean {
    /**
     * order by 排序语句
     * 对应数据库表字段 flow_detail
     */
    private String orderBy;

    /**
     * 分页开始记录
     * 对应数据库表字段 flow_detail
     */
    private Integer start;

    /**
     * 分页大小
     * 对应数据库表字段 flow_detail
     */
    private int pageSize = 10;

    /**
     * 是否指定 distinct 去除重复
     * 对应数据库表字段 flow_detail
     */
    private boolean distinct;

    /**
     * 逻辑or语句
     * 对应数据库表字段 flow_detail
     */
    private List<Criteria> oredCriteria;

    /**
     */
    public FlowDetailBean() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * 设置 order by 排序语句
     */
    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    /**
     * 获得 order by 排序语句
     */
    public String getOrderBy() {
        return orderBy;
    }

    /**
     * 设置 start，分页开始记录
     */
    public void setStart(Integer start) {
        this.start = start;
    }

    /**
     * 获得 start，分页开始记录
     */
    public Integer getStart() {
        return start;
    }

    /**
     * 设置 pageSize，分页大小
     */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * 获得 pageSize，分页大小
     */
    public int getPageSize() {
        return pageSize;
    }

    /**
     * 设置是否指定 distinct 去除重复
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * 是否设置了distinct语句，true是，false否。
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * 获得逻辑or语句
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * 添加逻辑or语句
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * 添加逻辑and语句
     */
    public void and(Criteria criteria) {
        criteria.setAndRelation(true);
        oredCriteria.add(criteria);
    }

    /**
     * 新建逻辑或or语句
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * 新建逻辑and语句
     */
    public Criteria and() {
        Criteria criteria = createCriteriaInternal();
        criteria.setAndRelation(true);
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * 创建查询条件，如果逻辑或为空，同时将查询条件放入。
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * 创建新查询条件。
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * 清除逻辑或or语句，并且distinct为false，不去重。
     */
    public void clear() {
        oredCriteria.clear();
    }

    /**
     * 该类对应数据库表 flow_detail
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void orCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition, true));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void orCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value, true));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void orCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2, true));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdIsNull() {
            orCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria orIdIsNotNull() {
            orCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria orIdEqualTo(String value) {
            orCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotEqualTo(String value) {
            orCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdGreaterThan(String value) {
            orCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdGreaterThanOrEqualTo(String value) {
            orCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdLessThan(String value) {
            orCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdLessThanOrEqualTo(String value) {
            orCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdLike(String value) {
            orCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotLike(String value) {
            orCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria orIdIn(List<String> values) {
            orCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotIn(List<String> values) {
            orCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria orIdBetween(String value1, String value2) {
            orCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotBetween(String value1, String value2) {
            orCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFlowIdIsNull() {
            addCriterion("flow_id is null");
            return (Criteria) this;
        }

        public Criteria andFlowIdIsNotNull() {
            addCriterion("flow_id is not null");
            return (Criteria) this;
        }

        public Criteria andFlowIdEqualTo(String value) {
            addCriterion("flow_id =", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotEqualTo(String value) {
            addCriterion("flow_id <>", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdGreaterThan(String value) {
            addCriterion("flow_id >", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdGreaterThanOrEqualTo(String value) {
            addCriterion("flow_id >=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdLessThan(String value) {
            addCriterion("flow_id <", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdLessThanOrEqualTo(String value) {
            addCriterion("flow_id <=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdIsNull() {
            orCriterion("flow_id is null");
            return (Criteria) this;
        }

        public Criteria orFlowIdIsNotNull() {
            orCriterion("flow_id is not null");
            return (Criteria) this;
        }

        public Criteria orFlowIdEqualTo(String value) {
            orCriterion("flow_id =", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdNotEqualTo(String value) {
            orCriterion("flow_id <>", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdGreaterThan(String value) {
            orCriterion("flow_id >", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdGreaterThanOrEqualTo(String value) {
            orCriterion("flow_id >=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdLessThan(String value) {
            orCriterion("flow_id <", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdLessThanOrEqualTo(String value) {
            orCriterion("flow_id <=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdLike(String value) {
            addCriterion("flow_id like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotLike(String value) {
            addCriterion("flow_id not like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdLike(String value) {
            orCriterion("flow_id like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdNotLike(String value) {
            orCriterion("flow_id not like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdIn(List<String> values) {
            addCriterion("flow_id in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotIn(List<String> values) {
            addCriterion("flow_id not in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdBetween(String value1, String value2) {
            addCriterion("flow_id between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotBetween(String value1, String value2) {
            addCriterion("flow_id not between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdIn(List<String> values) {
            orCriterion("flow_id in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdNotIn(List<String> values) {
            orCriterion("flow_id not in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdBetween(String value1, String value2) {
            orCriterion("flow_id between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria orFlowIdNotBetween(String value1, String value2) {
            orCriterion("flow_id not between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNull() {
            addCriterion("parent_id is null");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNotNull() {
            addCriterion("parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andParentIdEqualTo(String value) {
            addCriterion("parent_id =", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotEqualTo(String value) {
            addCriterion("parent_id <>", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThan(String value) {
            addCriterion("parent_id >", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThanOrEqualTo(String value) {
            addCriterion("parent_id >=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThan(String value) {
            addCriterion("parent_id <", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThanOrEqualTo(String value) {
            addCriterion("parent_id <=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdIsNull() {
            orCriterion("parent_id is null");
            return (Criteria) this;
        }

        public Criteria orParentIdIsNotNull() {
            orCriterion("parent_id is not null");
            return (Criteria) this;
        }

        public Criteria orParentIdEqualTo(String value) {
            orCriterion("parent_id =", value, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdNotEqualTo(String value) {
            orCriterion("parent_id <>", value, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdGreaterThan(String value) {
            orCriterion("parent_id >", value, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdGreaterThanOrEqualTo(String value) {
            orCriterion("parent_id >=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdLessThan(String value) {
            orCriterion("parent_id <", value, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdLessThanOrEqualTo(String value) {
            orCriterion("parent_id <=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLike(String value) {
            addCriterion("parent_id like", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotLike(String value) {
            addCriterion("parent_id not like", value, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdLike(String value) {
            orCriterion("parent_id like", value, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdNotLike(String value) {
            orCriterion("parent_id not like", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdIn(List<String> values) {
            addCriterion("parent_id in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotIn(List<String> values) {
            addCriterion("parent_id not in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdBetween(String value1, String value2) {
            addCriterion("parent_id between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotBetween(String value1, String value2) {
            addCriterion("parent_id not between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdIn(List<String> values) {
            orCriterion("parent_id in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdNotIn(List<String> values) {
            orCriterion("parent_id not in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdBetween(String value1, String value2) {
            orCriterion("parent_id between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria orParentIdNotBetween(String value1, String value2) {
            orCriterion("parent_id not between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andStepIsNull() {
            addCriterion("step is null");
            return (Criteria) this;
        }

        public Criteria andStepIsNotNull() {
            addCriterion("step is not null");
            return (Criteria) this;
        }

        public Criteria andStepEqualTo(Integer value) {
            addCriterion("step =", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepNotEqualTo(Integer value) {
            addCriterion("step <>", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepGreaterThan(Integer value) {
            addCriterion("step >", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepGreaterThanOrEqualTo(Integer value) {
            addCriterion("step >=", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepLessThan(Integer value) {
            addCriterion("step <", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepLessThanOrEqualTo(Integer value) {
            addCriterion("step <=", value, "step");
            return (Criteria) this;
        }

        public Criteria orStepIsNull() {
            orCriterion("step is null");
            return (Criteria) this;
        }

        public Criteria orStepIsNotNull() {
            orCriterion("step is not null");
            return (Criteria) this;
        }

        public Criteria orStepEqualTo(Integer value) {
            orCriterion("step =", value, "step");
            return (Criteria) this;
        }

        public Criteria orStepNotEqualTo(Integer value) {
            orCriterion("step <>", value, "step");
            return (Criteria) this;
        }

        public Criteria orStepGreaterThan(Integer value) {
            orCriterion("step >", value, "step");
            return (Criteria) this;
        }

        public Criteria orStepGreaterThanOrEqualTo(Integer value) {
            orCriterion("step >=", value, "step");
            return (Criteria) this;
        }

        public Criteria orStepLessThan(Integer value) {
            orCriterion("step <", value, "step");
            return (Criteria) this;
        }

        public Criteria orStepLessThanOrEqualTo(Integer value) {
            orCriterion("step <=", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepIn(List<Integer> values) {
            addCriterion("step in", values, "step");
            return (Criteria) this;
        }

        public Criteria andStepNotIn(List<Integer> values) {
            addCriterion("step not in", values, "step");
            return (Criteria) this;
        }

        public Criteria andStepBetween(Integer value1, Integer value2) {
            addCriterion("step between", value1, value2, "step");
            return (Criteria) this;
        }

        public Criteria andStepNotBetween(Integer value1, Integer value2) {
            addCriterion("step not between", value1, value2, "step");
            return (Criteria) this;
        }

        public Criteria orStepIn(List<Integer> values) {
            orCriterion("step in", values, "step");
            return (Criteria) this;
        }

        public Criteria orStepNotIn(List<Integer> values) {
            orCriterion("step not in", values, "step");
            return (Criteria) this;
        }

        public Criteria orStepBetween(Integer value1, Integer value2) {
            orCriterion("step between", value1, value2, "step");
            return (Criteria) this;
        }

        public Criteria orStepNotBetween(Integer value1, Integer value2) {
            orCriterion("step not between", value1, value2, "step");
            return (Criteria) this;
        }

        public Criteria andRoleTypeIsNull() {
            addCriterion("role_type is null");
            return (Criteria) this;
        }

        public Criteria andRoleTypeIsNotNull() {
            addCriterion("role_type is not null");
            return (Criteria) this;
        }

        public Criteria andRoleTypeEqualTo(Integer value) {
            addCriterion("role_type =", value, "roleType");
            return (Criteria) this;
        }

        public Criteria andRoleTypeNotEqualTo(Integer value) {
            addCriterion("role_type <>", value, "roleType");
            return (Criteria) this;
        }

        public Criteria andRoleTypeGreaterThan(Integer value) {
            addCriterion("role_type >", value, "roleType");
            return (Criteria) this;
        }

        public Criteria andRoleTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("role_type >=", value, "roleType");
            return (Criteria) this;
        }

        public Criteria andRoleTypeLessThan(Integer value) {
            addCriterion("role_type <", value, "roleType");
            return (Criteria) this;
        }

        public Criteria andRoleTypeLessThanOrEqualTo(Integer value) {
            addCriterion("role_type <=", value, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeIsNull() {
            orCriterion("role_type is null");
            return (Criteria) this;
        }

        public Criteria orRoleTypeIsNotNull() {
            orCriterion("role_type is not null");
            return (Criteria) this;
        }

        public Criteria orRoleTypeEqualTo(Integer value) {
            orCriterion("role_type =", value, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeNotEqualTo(Integer value) {
            orCriterion("role_type <>", value, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeGreaterThan(Integer value) {
            orCriterion("role_type >", value, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeGreaterThanOrEqualTo(Integer value) {
            orCriterion("role_type >=", value, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeLessThan(Integer value) {
            orCriterion("role_type <", value, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeLessThanOrEqualTo(Integer value) {
            orCriterion("role_type <=", value, "roleType");
            return (Criteria) this;
        }

        public Criteria andRoleTypeIn(List<Integer> values) {
            addCriterion("role_type in", values, "roleType");
            return (Criteria) this;
        }

        public Criteria andRoleTypeNotIn(List<Integer> values) {
            addCriterion("role_type not in", values, "roleType");
            return (Criteria) this;
        }

        public Criteria andRoleTypeBetween(Integer value1, Integer value2) {
            addCriterion("role_type between", value1, value2, "roleType");
            return (Criteria) this;
        }

        public Criteria andRoleTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("role_type not between", value1, value2, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeIn(List<Integer> values) {
            orCriterion("role_type in", values, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeNotIn(List<Integer> values) {
            orCriterion("role_type not in", values, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeBetween(Integer value1, Integer value2) {
            orCriterion("role_type between", value1, value2, "roleType");
            return (Criteria) this;
        }

        public Criteria orRoleTypeNotBetween(Integer value1, Integer value2) {
            orCriterion("role_type not between", value1, value2, "roleType");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria orNameIsNull() {
            orCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria orNameIsNotNull() {
            orCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria orNameEqualTo(String value) {
            orCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria orNameNotEqualTo(String value) {
            orCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria orNameGreaterThan(String value) {
            orCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria orNameGreaterThanOrEqualTo(String value) {
            orCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria orNameLessThan(String value) {
            orCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria orNameLessThanOrEqualTo(String value) {
            orCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria orNameLike(String value) {
            orCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria orNameNotLike(String value) {
            orCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria orNameIn(List<String> values) {
            orCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria orNameNotIn(List<String> values) {
            orCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria orNameBetween(String value1, String value2) {
            orCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria orNameNotBetween(String value1, String value2) {
            orCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeIsNull() {
            orCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria orCreateTimeIsNotNull() {
            orCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria orCreateTimeEqualTo(Date value) {
            orCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeNotEqualTo(Date value) {
            orCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeGreaterThan(Date value) {
            orCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeGreaterThanOrEqualTo(Date value) {
            orCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeLessThan(Date value) {
            orCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeLessThanOrEqualTo(Date value) {
            orCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeIn(List<Date> values) {
            orCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeNotIn(List<Date> values) {
            orCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeBetween(Date value1, Date value2) {
            orCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeNotBetween(Date value1, Date value2) {
            orCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andAuditModeIsNull() {
            addCriterion("audit_mode is null");
            return (Criteria) this;
        }

        public Criteria andAuditModeIsNotNull() {
            addCriterion("audit_mode is not null");
            return (Criteria) this;
        }

        public Criteria andAuditModeEqualTo(Integer value) {
            addCriterion("audit_mode =", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria andAuditModeNotEqualTo(Integer value) {
            addCriterion("audit_mode <>", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria andAuditModeGreaterThan(Integer value) {
            addCriterion("audit_mode >", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria andAuditModeGreaterThanOrEqualTo(Integer value) {
            addCriterion("audit_mode >=", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria andAuditModeLessThan(Integer value) {
            addCriterion("audit_mode <", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria andAuditModeLessThanOrEqualTo(Integer value) {
            addCriterion("audit_mode <=", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeIsNull() {
            orCriterion("audit_mode is null");
            return (Criteria) this;
        }

        public Criteria orAuditModeIsNotNull() {
            orCriterion("audit_mode is not null");
            return (Criteria) this;
        }

        public Criteria orAuditModeEqualTo(Integer value) {
            orCriterion("audit_mode =", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeNotEqualTo(Integer value) {
            orCriterion("audit_mode <>", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeGreaterThan(Integer value) {
            orCriterion("audit_mode >", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeGreaterThanOrEqualTo(Integer value) {
            orCriterion("audit_mode >=", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeLessThan(Integer value) {
            orCriterion("audit_mode <", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeLessThanOrEqualTo(Integer value) {
            orCriterion("audit_mode <=", value, "auditMode");
            return (Criteria) this;
        }

        public Criteria andAuditModeIn(List<Integer> values) {
            addCriterion("audit_mode in", values, "auditMode");
            return (Criteria) this;
        }

        public Criteria andAuditModeNotIn(List<Integer> values) {
            addCriterion("audit_mode not in", values, "auditMode");
            return (Criteria) this;
        }

        public Criteria andAuditModeBetween(Integer value1, Integer value2) {
            addCriterion("audit_mode between", value1, value2, "auditMode");
            return (Criteria) this;
        }

        public Criteria andAuditModeNotBetween(Integer value1, Integer value2) {
            addCriterion("audit_mode not between", value1, value2, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeIn(List<Integer> values) {
            orCriterion("audit_mode in", values, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeNotIn(List<Integer> values) {
            orCriterion("audit_mode not in", values, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeBetween(Integer value1, Integer value2) {
            orCriterion("audit_mode between", value1, value2, "auditMode");
            return (Criteria) this;
        }

        public Criteria orAuditModeNotBetween(Integer value1, Integer value2) {
            orCriterion("audit_mode not between", value1, value2, "auditMode");
            return (Criteria) this;
        }
    }

    /**
     * 该类对应数据库表 flow_detail
     */
    public static class Criteria extends GeneratedCriteria {
        protected boolean andRelation;

        public boolean isAndRelation() {
            return andRelation;
        }

        protected Criteria() {
            super();
        }

        public void setAndRelation(boolean andRelation) {
            this.andRelation = andRelation;
        }
    }

    /**
     * 该类对应数据库表 flow_detail
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean orValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isOrValue() {
            return orValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, boolean orValue) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
            this.orValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, boolean orValue) {
            this(condition, value, null);
            this.orValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, boolean orValue) {
            this(condition, value, secondValue, null);
            this.orValue = true;
        }
    }
}